package com.baizhi.shane.shane.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 闻柏智
 * @date 2024/03/03 21:21:28
 */
@Data
@ApiModel("我发布过的回答出参DTO")
public class AnswerMyPostedOutDTO {
    @ApiModelProperty(value = "答案ID")
    private Long Id;
    @ApiModelProperty(value = "答案创建时间")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    @ApiModelProperty(value = "答案显示文本")
    private String displayText;
    @ApiModelProperty(value = "问题ID")
    private Long questionId;
    @ApiModelProperty(value = "问题标题")
    private String questionTitle;
    @ApiModelProperty(value = "答案用户ID")
    private Long userId;

}
